package com.itqf.service.impl;

import com.itqf.entity.Account;
import com.itqf.mapper.AccountMapper;
import com.itqf.service.AccountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2021/1/26
 * @Time: 下午5:01
 */
@Service
public class AccountServiceImpl implements AccountService {

    //(name = "accountMapper")可以省略
    @Resource(name = "accountMapper")//首字母小写的类名
    private AccountMapper accountMapper;


    @Override
    public List<Account> find() {
        return accountMapper.selectList(null);
    }
}
